<template>
	<div id="app">
		<Header></Header>
		<router-view></router-view>
		
		<!-- home、search显示 login、register隐藏 -->
		<Footer v-show="$route.meta.show"></Footer>
	</div>
</template>

<script>
	// 引入组件
	import Header from './components/Header'
	import Footer from './components/Footer'
	export default {
		name: 'App',
		components: {
			Header,
			Footer

		},
		mounted(){
			//通知Vuex发送请求
			this.$store.dispatch('cateoryList')
		}
	}
</script>

<style>

</style>
